﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DeveloperSite.Master" AutoEventWireup="true" 
    CodeBehind="SubmittedProjectReport.aspx.cs" Inherits="Amkeni_System.Programme.SubmittedProjectReport" 
    MaintainScrollPositionOnPostback="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="CustomDropDownList" Namespace="CustomDropDownList" TagPrefix="ddl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

    <style type="text/css">
        .style1
        {
            width: 40%;
            text-align:left;
            white-space: nowrap;
        }
        .style2
        {
            width: 40%;
            text-align:left;
            white-space: nowrap;
            margin: 0 auto;
        }
        .rowstyle1
        {
            padding: 0.5em 0 0 1.5em;
        }
        .rowstyle2
        {
            padding: 0 0 .5em 1.5em;
            font-size:8pt;
        }
        .rowstyle3
        {
            padding: 0 0 0 1.5em;
        }
    </style>

    <script type="text/javascript" language="javascript">
        function onUpdating() {
            // get the update progress div
            var updateProgressDiv = $get('updateProgressDiv');
            //var updateProgressDiv = document.getElementsByClassName('updateProgressDiv')[0];

            // make it visible
            updateProgressDiv.style.display = '';

            // set the progress element to this position
            //Sys.UI.DomElement.setLocation(updateProgressDiv, 310, 510);
        }
        function onUpdated() {
            // get the update progress div
            var updateProgressDiv = $get('updateProgressDiv');
            //var updateProgressDiv = document.getElementsByClassName('updateProgressDiv')[0];

            // make it invisible
            updateProgressDiv.style.display = 'none';
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<%--=========================================================================================================--%>

    <asp:EntityDataSource ID="IndicatorDataSource" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableFlattening="False" EntitySetName="indicator" 
        Select="it.[indicator_id]">
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="OutputDataSource" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableFlattening="False" EntitySetName="programme_output" 
        Select="it.[output_id]">
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="IndicatorResultsDataSource" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableFlattening="False" EntitySetName="indicator_result" 
        Include="indicator,indicator_status" 
        AutoGenerateWhereClause="True" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True">
        <WhereParameters>
            <asp:SessionParameter Name="ip_id" SessionField="Sub_Project" />
            <asp:SessionParameter Name="year_id" SessionField="Sub_Year" />
            <asp:SessionParameter Name="report_period_id" SessionField="Sub_ReportPeriod" />
            <asp:SessionParameter Name="RFP_id" SessionField="Sub_Call" />
        </WhereParameters>
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="BeneficiaryDataSource" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
        EntitySetName="ip_direct_beneficiary" Include="beneficiary"
        AutoGenerateWhereClause="true">
        <WhereParameters>
            <asp:SessionParameter Name="ip_id" SessionField="Sub_project" />
            <asp:SessionParameter Name="year_id" SessionField="Sub_Year" />
            <asp:SessionParameter Name="report_period_id" SessionField="Sub_ReportPeriod" />
            <asp:SessionParameter Name="RFP_id" SessionField="Sub_Call" />
        </WhereParameters>
    </asp:EntityDataSource>
    
    <asp:EntityDataSource ID="ActivitiesDataSource" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableDelete="True" EnableFlattening="False" EnableInsert="True" 
        EnableUpdate="True" EntitySetName="upcoming_activities" AutoGenerateWhereClause="true">
        <WhereParameters>
            <asp:SessionParameter Name="ip_id" SessionField="Sub_project" />
            <asp:SessionParameter Name="year_id" SessionField="Sub_Year" />
            <asp:SessionParameter Name="report_period_id" SessionField="Sub_ReportPeriod" />
            <asp:SessionParameter Name="RFP_id" SessionField="Sub_Call" />
        </WhereParameters>
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="PhotoDataSource" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableDelete="True" EnableFlattening="False" EnableInsert="True" 
        EnableUpdate="True" EntitySetName="ip_photo" AutoGenerateWhereClause="true">
        <WhereParameters>
            <asp:SessionParameter Name="ip_id" SessionField="Sub_project" />
            <asp:SessionParameter Name="year_id" SessionField="Sub_Year" />
            <asp:SessionParameter Name="report_period_id" SessionField="Sub_ReportPeriod" />
            <asp:SessionParameter Name="RFP_id" SessionField="Sub_Call" />
        </WhereParameters>
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="IndicatorStatusDataSource" runat="server" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableFlattening="False" EntitySetName="indicator_status" EntityTypeFilter="indicator_status" 
        Select="it.[status_id], it.[status]"></asp:EntityDataSource>

    <asp:EntityDataSource ID="MonitoringAndEvaluationDataSource" runat="server" AutoGenerateWhereClause="true"
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
        EntitySetName="monitoring_and_evaluation" EntityTypeFilter="monitoring_and_evaluation">
        <WhereParameters>
            <asp:SessionParameter Name="ip_id" SessionField="Sub_project" />
            <asp:SessionParameter Name="year_id" SessionField="Sub_Year" />
            <asp:SessionParameter Name="report_period_id" SessionField="Sub_ReportPeriod" />
            <asp:SessionParameter Name="RFP_id" SessionField="Sub_Call" />
        </WhereParameters>
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="RiskAndMitigationDataSource" runat="server" AutoGenerateWhereClause="true" 
        ConnectionString="name=Amkeni_DatabaseEntities" DefaultContainerName="Amkeni_DatabaseEntities" 
        EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
        EntitySetName="risk_and_mitigation" EntityTypeFilter="risk_and_mitigation">
        <WhereParameters>
            <asp:SessionParameter Name="ip_id" SessionField="Sub_project" />
            <asp:SessionParameter Name="year_id" SessionField="Sub_Year" />
            <asp:SessionParameter Name="report_period_id" SessionField="Sub_ReportPeriod" />
            <asp:SessionParameter Name="RFP_id" SessionField="Sub_Call" />
        </WhereParameters>
    </asp:EntityDataSource>

<%--=========================================================================================================--%>
    <asp:ScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true" 
        LoadScriptsBeforeUI="false">
    </asp:ScriptManager>
<%--======================================================================================================== --%>
   <div style="height:8em;">
       <div style="float:left;">
            <asp:Label ID="ErrorLabel" runat="server" Text="" Visible="false"></asp:Label>
            <asp:Label ID="ContextLabel" runat="server" Text="SUBMITTED IMPLEMENTING PARTNER REPORT" CssClass="ContentHead"></asp:Label><br />
            <asp:Label ID="CallLabel" runat="server" Text="" CssClass="ContentHead"></asp:Label><br />
            <asp:Label ID="ProjectLabel" runat="server" Text="" CssClass="ContentHead"></asp:Label><br />
            <asp:Label ID="YearLabel" runat="server" Text="" CssClass="ContentHead"></asp:Label>
            <asp:Label ID="ReportPeriodLabel" runat="server" Text="" CssClass="ContentHead"></asp:Label><br />
       </div>
        <div style="float:right;">
            <asp:Table ID="Table1" runat="server" CssClass="style1">
                
                <asp:TableRow>
                    <asp:TableCell>
                        <asp:Label ID="Label19" runat="server" Text="Prepared by:"></asp:Label>
                        <br />
                        <div style="padding-top:2px; text-align:center;">
                            <asp:Button ID="EditorButton" runat="server" Text="Save" 
                                    OnClick="EditorButton_Click" />
                        </div>
                    </asp:TableCell>
                    <asp:TableCell CssClass="rowstyle1">
                        <asp:TextBox ID="AuthorTextBox" runat="server" TextMode="MultiLine" 
                            Height="50px" Width="200px" CssClass="MText"></asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell></asp:TableCell>
                    <asp:TableCell CssClass="rowstyle2">
                        <asp:Label ID="Label40" runat="server" ForeColor="#0055cc">
                            *Please ensure all contributers are included.
                        </asp:Label>
                    </asp:TableCell>
                </asp:TableRow>
            </asp:Table>
        </div>
    </div>
<%--======================================================================================================== --%>
    <asp:Accordion ID="ReportsAccordion" runat="server" SelectedIndex="-1" RequireOpenedPane="false" 
    AutoSize="None" FadeTransitions="false" FramesPerSecond="20" HeaderCssClass="accordionHeader" 
     ContentCssClass="accordionContent" HeaderSelectedCssClass="accordionHeaderSelected"
      SuppressHeaderPostbacks="true">
      <Panes>
<%--======================================================================================================== --%>
        <asp:AccordionPane ID="ProjectDataPane" runat="server">
            <Header>Project Donors</Header>
            <Content>
                <asp:UpdatePanel ID="UpdatePanel6" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div style="float:left;">
                            <asp:Table ID="T1" runat="server" CssClass="style1">
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="DonorLabel" runat="server" Text="Donors:"></asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell CssClass="rowstyle3">
                                        <asp:ListBox ID="DonorListBox" runat="server" Rows="6" Width="282px" 
                                            SelectionMode="Multiple" 
                                            DataTextField="name" DataValueField="donor_id"></asp:ListBox>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell></asp:TableCell>
                                    <asp:TableCell CssClass="rowstyle3">
                                        <asp:Button ID="SaveDonorButton" runat="server" Text="Save" OnClick="SaveDonorButton_Click" />
                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </div>
                        <div style="float:right;">
                            <asp:Table ID="Table6" runat="server" CssClass="style1">
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="Label198" runat="server" Text="List of Project Donors"></asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell CssClass="rowstyle3">
                                        <asp:ListBox ID="ProjectDonorListBox" runat="server" Rows="6" Width="282px"
                                            SelectionMode="Multiple" DataTextField="name" DataValueField="donor_id">
                                        </asp:ListBox>
                                    </asp:TableCell>    
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell></asp:TableCell>
                                    <asp:TableCell CssClass="rowstyle3">
                                        <asp:Button ID="DeleteDonorButton" runat="server" Text="Delete" OnClick="DeleteDonorButton_Click" />
                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>  
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
          <asp:AccordionPane ID="ContextualAnalysisPane" runat="server">
            <Header>Project Context</Header>
            <Content>

            <asp:UpdatePanel ID="ContextualUpdatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <div style="text-align:left; padding:0 6em 0 6em;">
                <asp:Label ID="Label56" runat="server" Text="Instructions" Font-Italic="true" 
                CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                <br /><br />
                <asp:Label ID="Label54" runat="server" CssClass="GuidingQuestions">
                Use the following ‘Political, Economic, Social, Technological, Legal, and Environmental 
                (PESTLE) analysis’ outline to assist in structuring the narrative –ensure the analysis 
                provided is relevant to the projects parameters (not all factors are necessary for 
                each project). Issues to consider when developing the narrative include:
                </asp:Label>
                <br /><br />
                
                    <asp:Label ID="Label55" runat="server" CssClass="GuidingQuestions">
                    1. Political: What are the key political factors affecting project implementation? 
                    e.g. stability, rule of law, levels of bureaucracy, corruption, changes in the 
                    political environment, and policies etc.
                    <br />
                    2. Economic: What are the important economic factors affecting project implementation? 
                    e.g. economic growth, costs, income distribution, changes in the economic environment, 
                    taxation issues etc.
                    <br />
                    3. Social: What socio-cultural developments are affecting project implementation? 
                    e.g. press attitudes, public opinion, social attitudes, law changes affecting social 
                    factors, ethnic/religious factors etc.
                    <br />
                    4. Technological: What technological improvements are affecting project implementation? 
                    e.g. emerging technologies, infrastructure developments, research and development activity etc.
                    <br />
                    5. Legal: What current and impending legislation is affecting project implementation? e.g. 
                    changes in the legal environment linked to the project and its area of activity, 
                    county legislation etc.
                    <br />
                    6. Environmental: What environmental issues are affecting project implementation? e.g. 
                    factors related, influenced or determined by the surrounding environment - 
                    this includes, but is not limited to weather, climate, geographical position, 
                    climate change, mineral exploration and exploitation, and even insurance etc.
                    </asp:Label>
                </div>
                <br />
                <asp:TextBox ID="CATextBox" runat="server" TextMode="MultiLine" 
                    Height="160px" Width="900px" CssClass="MText" />
                    <%--onKeyUp="javascript:Count(this,1500,this.form.SLCACounter);" 
                    onChange="javascript:Count(this,1500,this.form.SLCACounter);"></asp:TextBox>--%>
                <br />
                <%--<div style="float:left; padding:.3em 0 0 6em;">
                    <asp:Label ID="Label47" runat="server" CssClass="GuidingQuestions">
                        You have <input readonly="readonly" type="text" name="SLCACounter" 
                        size="4" maxlength="4" value="<%= (1500 - CATextBox.Text.Length) %>" /> 
                        characters remaining.
                    </asp:Label>
                </div>--%>
                <div style="float:right; padding:.3em 6em 0 0;">
                    <asp:Button ID="CAButton" runat="server" Text="Save" OnClick="CAButton_Click" />
                </div>                
            </ContentTemplate>
            </asp:UpdatePanel>

            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
        <asp:AccordionPane ID="ProjectBeneficiariesPane" runat="server">
            <Header>Project Beneficiaries</Header>
            <Content>
                <div style="text-align:left; padding:0 6em 0 6em;">
                <asp:Label ID="Label14" runat="server" Text="Instructions" Font-Italic="true" 
                CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                <br /><br />
                <asp:Label ID="Label15" runat="server" CssClass="GuidingQuestions">
                    This section presents the beneficiaries reached both directly and indirectly.
                    It is preferable to ensure that the direct beneficiaries are dissagregated in the following
                    categories:-
                </asp:Label>
                    <br /><br />
                    <asp:Label ID="Label16" runat="server" CssClass="GuidingQuestions">
                        1. PWD's - These are persons with disability, both male and female
                        <br />
                        2. Youth - These are young adults under the age of 35 years, both male and female.
                        <br />
                        4. Minorities - These are both male and female persons who are less than the 
                        dominant community.
                        <br />
                        5. Pupils - These are primary school going children, both male and female.
                        <br />
                        6. Students - These are secondary schools going persons, both male and female.
                        <br />
                        7. Citizens - These are ordinary male and female who do not belong to any of the groups
                        identified above.
                    </asp:Label>
                </div>
                <div style="text-align:left; padding:0 6em 0 6em;">
                    <asp:Table ID="Table3" runat="server" CssClass="style1">
                        <asp:TableRow>
                            <asp:TableCell>
                                Estimated Number of indirect deneficiaries including those reached through media activities.
                            </asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <asp:TextBox ID="IndirectBeneficiariesTextBox" runat="server"></asp:TextBox>
                            </asp:TableCell>
                            <asp:TableCell>
                                <asp:CompareValidator ID="CV" runat="server" ErrorMessage="Enter a Number"
                                    ForeColor="Red" ControlToValidate="IndirectBeneficiariesTextBox"
                                    Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
                            </asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <asp:Button ID="IB_Btn" runat="server" Text="Save" OnClick="IB_Btn_Click" />
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                </div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:GridView ID="BeneficiaryGridView" runat="server" AutoGenerateColumns="False" 
                            DataKeyNames="ip_beneficiary_id" DataSourceID="BeneficiaryDataSource"
                            CssClass="NewGrid" ShowFooter="True" OnRowDataBound="BeneficiaryGridView_RowDataBound">
                            <AlternatingRowStyle CssClass="NewGridAlt" />
                            <FooterStyle CssClass="NewGridFooter" />
                            <Columns>
                                <asp:BoundField DataField="ip_beneficiary_id" HeaderText="ip_beneficiary_id" ReadOnly="True" 
                                    SortExpression="ip_beneficiary_id" Visible="false" />
                                <asp:TemplateField HeaderText="Beneficiary" SortExpression="beneficiary_id">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("beneficiary.name") %>'></asp:Label>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:Label ID="Label5" runat="server" Text="TOTAL" ForeColor="White"></asp:Label>
                                    </FooterTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Male" SortExpression="male">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("male") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="MaleCount" runat="server" Text='<%# Bind("male") %>'></asp:Label>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:Label ID="MaleTotal" runat="server" Text="" ForeColor="White"></asp:Label>
                                    </FooterTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Female" SortExpression="female">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("female") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="FemaleCount" runat="server" Text='<%# Bind("female") %>'></asp:Label>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:Label ID="FemaleTotal" runat="server" Text="" ForeColor="White"></asp:Label>
                                    </FooterTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="EDIT" ShowHeader="False">
                                    <EditItemTemplate>
                                        <asp:Button ID="Button1" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />
                                        &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" />
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:Label ID="GrandTotal" runat="server" Text="" ForeColor="White"></asp:Label>
                                    </FooterTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--==================================START HERE==============================================================--%>
        <asp:AccordionPane ID="OutputIndicatorPane" runat="server">
            <Header>Output Indicators / Results</Header>
            <Content>

                <div style="text-align:left; padding:0 6em 0 6em;">

                    <asp:Label ID="Label70" runat="server" Text="Instructions" Font-Italic="true" 
                CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                <br /><br />
                    <%--<asp:Label ID="Label71" runat="server" CssClass="GuidingQuestions">
                    Please refer to the ‘Project Monitoring Plan’ for guidance on which indicators to 
                    report against for the reporting period
                    </asp:Label>
                    <br /><br />--%>
                    <asp:Label ID="Label18" runat="server" CssClass="GuidingQuestions">
                        This section presents the actual results juxtaposed against the indicators.
                        It brings out actual changes witnessed arising from the implementation of the project this quarter
                    </asp:Label>
                    <br /><br />
                    <%--<asp:Table ID="Table2" runat="server" CssClass="style1">
                        <asp:TableRow>
                            <asp:TableCell>
                                <asp:Label ID="Label4" runat="server" Text="Output Indicator"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <ddl:CustomDropDownList ID="OutputIndicatorList" runat="server"
                                    DataSourceID="OutputIndicatorDataSource" 
                                    DataTextField="output_indicator_id"
                                    DataValueField="output_indicator_id" 
                                    Width="70px" CssClass="dropDown" 
                                    OnSelectedIndexChanged="OutputIndicatorList_SelectedIndexChanged" 
                                    OnDataBound="OutputIndicatorList_DataBound"
                                    AutoPostBack="true">
                                </ddl:CustomDropDownList>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell></asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <asp:TextBox ID="TextBox6" runat="server" TextMode="MultiLine" ReadOnly="true"
                                 Height="40px" Width="750px" CssClass="MText" Enabled="false"></asp:TextBox>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <asp:Label ID="Label2" runat="server" Text="Result"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <asp:TextBox ID="CpdOutputResultTextBox" runat="server" TextMode="MultiLine" 
                                    Height="60px" Width="750px" CssClass="MText"
                                    onKeyUp="javascript:Count(this,500,this.form.counter8);" 
                                    onChange="javascript:Count(this,500,this.form.counter8);"></asp:TextBox>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell></asp:TableCell>
                            <asp:TableCell CssClass="rowstyle3">
                                <asp:Label ID="Label90" runat="server" CssClass="GuidingQuestions">
                                Provide brief remarks on the result e.g. targets / milestones achieved, 
                                constraints experienced, and / or other relevant 
                                information on delivery.
                                </asp:Label>
                                <br />
                                <asp:Label ID="Label73" runat="server" CssClass="GuidingQuestions">
                                Enter quantitative data in response to the indicator - 
                                where possible provide sex disaggregated statistics, 
                                using the format (F:820, M:1,000)
                                </asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell></asp:TableCell>
                            <asp:TableCell CssClass="rowstyle3">
                                <asp:Label ID="Label30" runat="server" CssClass="GuidingQuestions">
                                    You have <input readonly="readonly" type="text" name="counter8" 
                                    size="2" maxlength="2" value="<%= (500 - CpdOutputResultTextBox.Text.Length) %>"/> 
                                    characters remaining.
                                </asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <asp:Label ID="Label1" runat="server" Text="Comment"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <asp:TextBox ID="CpdOutputCommentTextBox" runat="server" TextMode="MultiLine" 
                                    Height="40px" Width="750px" CssClass="MText" 
                                    onKeyUp="javascript:Count(this,300,this.form.counter9);" 
                                    onChange="javascript:Count(this,300,this.form.counter9);"></asp:TextBox>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell></asp:TableCell>
                            <asp:TableCell CssClass="rowstyle3">
                                <asp:Label ID="Label74" runat="server" CssClass="GuidingQuestions">
                                Any other comments.
                                </asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell></asp:TableCell>
                            <asp:TableCell CssClass="rowstyle3">
                                <div style="float:left;">
                                    <asp:Label ID="Label31" runat="server" CssClass="GuidingQuestions">
                                        You have <input readonly="readonly" type="text" name="counter9" 
                                        size="2" maxlength="2" value="<%= (300 - CpdOutputCommentTextBox.Text.Length) %>"/> 
                                        characters remaining.
                                    </asp:Label>
                                </div>
                                <div style="float:right;">
                                    <asp:Button ID="OutputButton" runat="server" Text="Save" 
                                    OnClick="OutputButton_Click" />
                                </div>
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>--%>
                </div>
                <asp:UpdatePanel ID="OutputUpdatePanel" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <p>
                    <%--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--%>
                    <asp:GridView ID="OutputGridView" runat="server" DataSourceID="IndicatorResultsDataSource" 
                    AutoGenerateColumns="False" CssClass="NewGrid" ShowFooter="true" 
                    DataKeyNames="output_indicator_result_id" OnRowDataBound="OutputGridView_RowDataBound"
                    OnDataBound="OutputGridView_DataBound" AllowSorting="true">
                    <%--OnRowUpdating="OutputGridView_RowUpdating">--%>
                    <AlternatingRowStyle CssClass="NewGridAlt" />
                    <Columns>
                    <%--<asp:TemplateField HeaderText="INDICATOR" ItemStyle-HorizontalAlign="Left" 
                        SortExpression="output_indicator_id">
                    <ItemTemplate>
                        <asp:Label ID="Label89" runat="server" Text='<%#Bind("indicator_id") %>'>
                        </asp:Label> - 
                        <asp:Label ID="Label1" runat="server" 
                            Text='<%# Eval("indicator.name") %>'></asp:Label>
                    </ItemTemplate>
                    </asp:TemplateField>--%>

                    <asp:TemplateField HeaderText="TARGET" ItemStyle-HorizontalAlign="Left" 
                        SortExpression="output_indicator_id">
                    <%--<EditItemTemplate>
                    
                        <asp:DropDownList ID="DropDownList2" runat="server" 
                            DataSourceID="OutputIndicatorDataSource" 
                            DataTextField="output_indicator_id"
                            DataValueField="output_indicator_id" 
                            SelectedValue='<%#Bind("output_indicator_id") %>'
                            OnDataBound="OutputIndicatorList_DataBound" 
                            Width="70px" CssClass="dropDown">
                        </asp:DropDownList>

                    </EditItemTemplate>--%>
                    <ItemTemplate>
                        <asp:Label ID="Label89" runat="server" Text='<%# Eval("indicator.output_indicator_id") %>'>
                        </asp:Label> - 
                        <asp:Label ID="Label1" runat="server" 
                            Text='<%# Eval("indicator.target") %>'></asp:Label>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="RESULT" ItemStyle-HorizontalAlign="Left">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("result") %>' 
                                TextMode="MultiLine" Height="70px" Width="300px" CssClass="MText" 
                                onKeyUp="javascript:Count(this,500);" 
                                onChange="javascript:Count(this,500);"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label20" runat="server" Text='<%# Bind("result") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="COMMENT" ItemStyle-HorizontalAlign="Left">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("comment") %>' 
                                TextMode="MultiLine" Height="120px" Width="300px" CssClass="MText"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("comment") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="STATUS">
                        <EditItemTemplate>
                            <asp:DropDownList ID="StatusDropDownList" runat="server" DataSourceID="IndicatorStatusDataSource" 
                                DataTextField="status" DataValueField="status_id" SelectedValue='<%# Bind("status_id") %>' >
                            </asp:DropDownList>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="StatusLabel" runat="server" 
                                Text='<%# Eval("indicator_status.status") == null ? "N/A" : Eval("indicator_status.status") %>' Visible="false"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <%--<asp:TemplateField HeaderText="EDIT">
                        <EditItemTemplate>
                            <asp:Button ID="UpdateBtn" runat="server" CausesValidation="True" 
                                CommandName="Update" Text="Update" />
                            &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" 
                                CommandName="Cancel" Text="Cancel" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Button ID="Button1" runat="server" CausesValidation="False" 
                                CommandName="Edit" Text="Edit" />
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <asp:CommandField ShowEditButton="true" ButtonType="Button" HeaderText="EDIT" />
                    <%--<asp:CommandField ShowDeleteButton="true" ButtonType="Button" HeaderText="DELETE" />--%>
                    </Columns>
                    <FooterStyle CssClass="NewGridFooter" />
                    </asp:GridView>
                    <%--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--%>
                </p>

                </ContentTemplate>
                </asp:UpdatePanel>

            </Content>
        </asp:AccordionPane>
<%--==================================END HERE==============================================================--%>

<%--======================================================================================================== --%>
          <asp:AccordionPane ID="LessonsPane" runat="server">
            <Header>Reflections / Lessons</Header>
            <Content>
                <div style="text-align:left; padding:0 6em 0 6em;">
                <asp:Label ID="Label62" runat="server" Text="Instructions" Font-Italic="true" 
                CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                <br /><br />
                <asp:Label ID="Label63" runat="server" CssClass="GuidingQuestions">
                Throughout the project life cycle, lessons are learned and opportunities for improvement 
                are discovered. As part of a continuous improvement process, documenting lessons learned 
                helps the team discover the root causes of problems that occurred and avoid those 
                problems in later project stages or future projects.
                <br /><br />
                Note: This section can include ‘key messages’ to be raised with donors.
                <br /><br />
                Use the guiding questions to assist in structuring the narrative:
                </asp:Label>
                <br /><br />
                    <asp:Label ID="Label64" runat="server" CssClass="GuidingQuestions">
                    1. What approaches worked well—or didn’t work well—either for the project or 
                    the project team?
                    <br />
                    2. What innovative approaches have been used by the project this quarter?
                    <br />
                    3. What needs to be done over or differently? Describe corrective actions taken 
                    if appropriate
                    <br />
                    4. What surprises did the team have to deal with?
                    <br />
                    5. What project circumstances were not anticipated?
                    </asp:Label>
                </div>
                <br />
                <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:TextBox ID="LessonsTextBox" runat="server" TextMode="MultiLine" 
                            Height="300px" Width="900px" CssClass="MText" 
                            onKeyUp="javascript:Count(this,2000,this.form.counter3);" 
                            onChange="javascript:Count(this,2000,this.form.counter3);"></asp:TextBox>
                        <br />
                        <div style="float:left; padding:.3em 0 0 6em;">
                        <asp:Label ID="Label25" runat="server" CssClass="GuidingQuestions">
                            You have <input readonly="readonly" type="text" name="counter3" 
                            size="4" maxlength="4" value="<%= (2000 - LessonsTextBox.Text.Length) %>"/> 
                            characters remaining.
                        </asp:Label>
                        </div>
                        <div style="float:right; padding:.3em 6em 0 0;">
                            <asp:Button ID="LessonButton" runat="server" Text="Save" 
                                OnClick="LessonButton_Click" />
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
        <asp:AccordionPane ID="MonitoringAndEvaluationPane" runat="server">
            <Header>Monitoring and Evaluation</Header>
            <Content>
                <asp:UpdatePanel ID="UpdatePanel7" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div style="text-align:left; padding:0 6em 0 6em;">
                        <asp:Label ID="Label39" runat="server" Text="Instructions" Font-Italic="true" 
                        CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                        <br /><br />
                        <asp:Label ID="Label41" runat="server" CssClass="GuidingQuestions">
                            Very briefly describe the type of M&E activities 
                            (field visits, assessments, reviews, surveys, evaluations etc) 
                            undertaken during the year and where possible the key outcomes of the M&E activity.
                        </asp:Label>
                        </div>
                        <br />

                        <asp:Table ID="Table2" runat="server" Style="text-align:left; padding:0 6em 0 6em;">
                            <asp:TableRow>
                                <asp:TableCell>
                                    <asp:Label ID="Label42" runat="server" Text="M&E Activity"></asp:Label>
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="M_and_EActivityTextBox" runat="server" Width="700px" 
                                        CssClass="MText" Height="50px" TextMode="MultiLine"></asp:TextBox>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell>
                                    <asp:Label ID="Label43" runat="server" Text="Key Outcomes / Observations"></asp:Label>
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="ObservationTextBox" runat="server" Width="700px" 
                                        CssClass="MText" Height="50px" TextMode="MultiLine"></asp:TextBox>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell>
                                    <asp:Label ID="Label44" runat="server" Text="Recommendation"></asp:Label>
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="M_and_ERecommendationTextBox" runat="server" Width="700px" 
                                        CssClass="MText" Height="50px" TextMode="MultiLine"></asp:TextBox>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell>
                                    <asp:Label ID="Label45" runat="server" Text="Action Taken"></asp:Label>
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="ActionTakenTextBox" runat="server" Width="700px"
                                        CssClass="MText" Height="50px" TextMode="MultiLine"></asp:TextBox>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell></asp:TableCell>
                                <asp:TableCell>
                                    <asp:Button ID="M_and_EButton" runat="server" Text="Save" OnClick="M_and_EButton_Click" />
                                </asp:TableCell>
                            </asp:TableRow>
                        </asp:Table>

                        <asp:GridView ID="MonitoringAndEvaluationGridView" runat="server" CssClass="NewGrid" 
                            DataSourceID="MonitoringAndEvaluationDataSource" AutoGenerateColumns="False" 
                            DataKeyNames="id" ShowFooter="true">
                            <AlternatingRowStyle CssClass="NewGridAlt" />
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" Visible="false"></asp:BoundField>
                                <asp:TemplateField HeaderText="M&E Activity" SortExpression="activity">
                                    <EditItemTemplate>
                                        <asp:TextBox runat="server" Text='<%# Bind("activity") %>' ID="TextBox1" TextMode="MultiLine"
                                            Height="100px" Width="200px" CssClass="MText"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label runat="server" Text='<%# Bind("activity") %>' ID="Label1"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Key Outcomes / Observation" SortExpression="observation">
                                    <EditItemTemplate>
                                        <asp:TextBox runat="server" Text='<%# Bind("observation") %>' ID="TextBox2" TextMode="MultiLine"
                                            Height="100px" Width="200px" CssClass="MText"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label runat="server" Text='<%# Bind("observation") %>' ID="Label2"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Recommendation" SortExpression="recommendation">
                                    <EditItemTemplate>
                                        <asp:TextBox runat="server" Text='<%# Bind("recommendation") %>' ID="TextBox3" TextMode="MultiLine"
                                            Height="100px" Width="200px" CssClass="MText"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label runat="server" Text='<%# Bind("recommendation") %>' ID="Label3"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Action taken" SortExpression="action_taken">
                                    <EditItemTemplate>
                                        <asp:TextBox runat="server" Text='<%# Bind("action_taken") %>' ID="TextBox4" TextMode="MultiLine"
                                            Height="100px" Width="200px" CssClass="MText"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label runat="server" Text='<%# Bind("action_taken") %>' ID="Label4"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowEditButton="True" ShowDeleteButton="True"></asp:CommandField>
                            </Columns>
                            <FooterStyle CssClass="NewGridFooter" />
                        </asp:GridView>

                    </ContentTemplate>
                </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
        <asp:AccordionPane ID="challengesPane" runat="server">
            <Header>Challenges</Header>
            <Content>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div style="text-align:left; padding:0 6em 0 6em;">
                        <asp:Label ID="Label57" runat="server" Text="Instructions" Font-Italic="true" 
                        CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                        <br /><br />
                        <asp:Label ID="Label38" runat="server" CssClass="GuidingQuestions">
                            1. This section enables the partners to report on difficulties 
                            encountered during project implementation and how the difficulties
                            affected implementation of the project this quarter.
                            These could be project related, context related, technical defficiencies 
                            or any other difficulties that hampered implementation of the project this quarter.
                            <br /><br />
                            2. Actions taken to minimise negative, and maximise positive interactions with 
                            difficulties encountered. 
                            Has the project taken any steps to mitigate identified conflicts? Examples may include: 
                            changing location, broadening beneficiary selection to improve inclusivity, 
                            improving communication with beneficiaries and non-beneficiaries, adopting more 
                            participatory planning methods.
                        </asp:Label>
                        </div>
                        <br />
                        <asp:TextBox ID="ChallengesTextBox" runat="server" TextMode="MultiLine" 
                            Height="160px" Width="900px" CssClass="MText" 
                            onKeyUp="javascript:Count(this,1000,this.form.counter6);" 
                            onChange="javascript:Count(this,1000,this.form.counter6);"></asp:TextBox>
                        <br />
                        <div style="float:left; padding:.3em 0 0 6em;">
                        <asp:Label ID="Label28" runat="server" CssClass="GuidingQuestions">
                            You have <input readonly="readonly" type="text" name="counter6" 
                            size="4" maxlength="4" value="<%= (1000 - ChallengesTextBox.Text.Length) %>"/> 
                            characters remaining.
                        </asp:Label>
                        </div>
                        <div style="float:right; padding:.3em 6em 0 0;">
                            <asp:Button ID="ChallengesButton" runat="server" Text="Save" 
                                OnClick="ChallengesButton_Click" />
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
        <asp:AccordionPane ID="GenderMainstreamingPane" runat="server">
            <Header>Gender Mainstreaming</Header>
            <Content>
                <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div style="text-align:left; padding:0 6em 0 6em;">
                        <asp:Label ID="Label4" runat="server" Text="Instructions" Font-Italic="true" 
                        CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                        <br /><br />
                        <asp:Label ID="Label27" runat="server" CssClass="GuidingQuestions">
                            1. Instruction 1
                            <br /><br />
                            2. Instruction 2
                        </asp:Label>
                        </div>
                        <br />
                        <asp:TextBox ID="GenderMainstreamingTextBox" runat="server" TextMode="MultiLine" 
                            Height="160px" Width="900px" CssClass="MText" 
                            onKeyUp="javascript:Count(this,1000,this.form.counter7);" 
                            onChange="javascript:Count(this,1000,this.form.counter7);"></asp:TextBox>
                        <br />
                        <div style="float:left; padding:.3em 0 0 6em;">
                        <asp:Label ID="Label30" runat="server" CssClass="GuidingQuestions">
                            You have <input readonly="readonly" type="text" name="counter7" 
                            size="4" maxlength="4" value="<%= (1000 - GenderMainstreamingTextBox.Text.Length) %>"/> 
                            characters remaining.
                        </asp:Label>
                        </div>
                        <div style="float:right; padding:.3em 6em 0 0;">
                            <asp:Button ID="CrossCuttingBtn" runat="server" Text="Save" OnClick="CrossCuttingBtn_Click"/>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
          <asp:AccordionPane ID="PartnershipsPane" runat="server">
            <Header>Partnerships</Header>
            <Content>
                <div style="text-align:left; padding:0 6em 0 6em;">
                <asp:Label ID="Label34" runat="server" Text="Instructions" Font-Italic="true" 
                CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                <br /><br />
                <asp:Label ID="Label35" runat="server" CssClass="GuidingQuestions">
                Instructions on partnerships here.
                </asp:Label>
                <br />
                </div>
                <br />
            <asp:UpdatePanel ID="PartnershipsUpdatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:TextBox ID="PartnershipsTextBox" runat="server" TextMode="MultiLine" CssClass="MText" 
                    Height="160px" Width="900px" onKeyUp="javascript:Count(this,1500,this.form.pcounter);" 
                    onChange="javascript:Count(this,1500,this.form.pcounter);"></asp:TextBox>
                <br />
                <div style="float:left; padding:.3em 0 0 6em;">
                <asp:Label ID="Label37" runat="server" CssClass="GuidingQuestions">
                    You have <input readonly="readonly" type="text" name="pcounter" 
                    size="4" maxlength="4" value="<%= (1500 - PartnershipsTextBox.Text.Length) %>"/> 
                    characters remaining.
                </asp:Label>
                </div>
                <div style="float:right; padding:.3em 6em 0 0;">
                    <asp:Button ID="PartnershipsButton" runat="server" Text="Save" 
                        OnClick="PartnershipsButton_Click" />
                </div>
            </ContentTemplate>
            </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
        <asp:AccordionPane ID="RiskAndMitigationPane" runat="server">
            <Header>Risks and Mitigation Measures</Header>
            <Content>
                <asp:UpdatePanel ID="UpdatePanel8" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div style="text-align:left; padding:0 6em 0 6em;">
                        <asp:Label ID="Label46" runat="server" Text="Instructions" Font-Italic="true" 
                        CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                        <br /><br />
                        <asp:Label ID="Label47" runat="server" CssClass="GuidingQuestions">
                            Risk :  Identify the different types of risks faced during the year and include here.  
                                    Please also refer to the risks identified in the project AWP during planning.  
                                    Look at all type of risks (environmental, financial, political, security, 
                                    operational etc).
                            <br /><br />
                            Mitigation Measures :   Describe the measures that were taken by the project / UNDP to mitigate or 
                                                    avoid the negative impact of the risk on the achievement of project results.
                        </asp:Label>
                        </div>
                        <br />

                        <asp:Table ID="Table9" runat="server" style="text-align:left; padding:0 6em 0 6em;">
                            <asp:TableRow>
                                <asp:TableCell>
                                    <asp:Label ID="Label48" runat="server" Text="Risk"></asp:Label>
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="RiskTextBox" runat="server" TextMode="MultiLine" Width="700px"
                                        CssClass="MText" Height="50px"></asp:TextBox>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell>
                                    <asp:Label ID="Label49" runat="server" Text="Mitigation Measure"></asp:Label>
                                </asp:TableCell>
                                <asp:TableCell>
                                    <asp:TextBox ID="MitigationTextBox" runat="server" TextMode="MultiLine"
                                        CssClass="MText" Width="700px" Height="50px"></asp:TextBox>
                                </asp:TableCell>
                            </asp:TableRow>
                            <asp:TableRow>
                                <asp:TableCell></asp:TableCell>
                                <asp:TableCell>
                                    <asp:Button ID="RiskAndMitigationButton" runat="server" Text="Save" OnClick="RiskAndMitigationButton_Click" />
                                </asp:TableCell>
                            </asp:TableRow>
                        </asp:Table>

                        <asp:GridView ID="RiskAndMitigationGridView" runat="server" DataSourceID="RiskAndMitigationDataSource" 
                            AutoGenerateColumns="False" DataKeyNames="id" CssClass="NewGrid" ShowFooter="true">
                            <AlternatingRowStyle CssClass="NewGridAlt" />
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" Visible="false"></asp:BoundField>
                                <asp:TemplateField HeaderText="Risk" SortExpression="risk">
                                    <EditItemTemplate>
                                        <asp:TextBox runat="server" Text='<%# Bind("risk") %>'
                                            CssClass="MText" ID="TextBox1" TextMode="MultiLine" Width="350px" Height="50px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label runat="server" Text='<%# Bind("risk") %>' ID="Label1"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Mitigation Measures" SortExpression="mitigation">
                                    <EditItemTemplate>
                                        <asp:TextBox runat="server" Text='<%# Bind("mitigation") %>'
                                            CssClass="MText" ID="TextBox2" TextMode="MultiLine" Width="350px" Height="50px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label runat="server" Text='<%# Bind("mitigation") %>' ID="Label2"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowEditButton="True" ShowDeleteButton="True"></asp:CommandField>
                            </Columns>
                            <FooterStyle CssClass="NewGridFooter" />
                        </asp:GridView>

                    </ContentTemplate>
                </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
        <asp:AccordionPane ID="RecommendationsPane" runat="server">
            <Header>Recommendations</Header>
            <Content>
                <div style="text-align:left; padding:0 6em 0 6em;">
                <asp:Label ID="Label58" runat="server" Text="Instructions" Font-Italic="true" 
                CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                <br /><br />
                <asp:Label ID="Label36" runat="server" CssClass="GuidingQuestions">
                This section entails proposals on how to improve various aspects of project, planning, 
                implementation, monitoring and evaluation.
                </asp:Label>
                <br />
                </div>
                <br />
            <asp:UpdatePanel ID="RecommendationUpdatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:TextBox ID="RecommendationsTextBox" runat="server" TextMode="MultiLine" CssClass="MText" 
                    Height="160px" Width="900px" onKeyUp="javascript:Count(this,1500,this.form.counter1);" 
                    onChange="javascript:Count(this,1500,this.form.counter1);"></asp:TextBox>
                <br />
                <div style="float:left; padding:.3em 0 0 6em;">
                <asp:Label ID="Label23" runat="server" CssClass="GuidingQuestions">
                    You have <input readonly="readonly" type="text" name="counter1" 
                    size="4" maxlength="4" value="<%= (1500 - RecommendationsTextBox.Text.Length) %>"/> 
                    characters remaining.
                </asp:Label>
                </div>
                <div style="float:right; padding:.3em 6em 0 0;">
                    <asp:Button ID="RecommendationsButton" runat="server" Text="Save" 
                        OnClick="RecommendationsButton_Click" />
                </div>
            </ContentTemplate>
            </asp:UpdatePanel>


            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
          <asp:AccordionPane ID="SuccessStoryPane" runat="server">
              <Header>Success Story</Header>
              <Content>
                <div style="text-align:left; padding:0 3em 0 3em;">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:Table ID="Table4" runat="server" CssClass="style2">
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:Label ID="Label3" runat="server" Text="Title Of The Story"></asp:Label>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:TextBox ID="TitleTxbx" runat="server" Width="450px" CssClass="MText"></asp:TextBox>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:Label ID="Label6" runat="server" Text="Context And Summary"></asp:Label>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:TextBox ID="ContextTxbx" runat="server" TextMode="MultiLine" 
                                            Width="900px" Height="160px" CssClass="MText"
                                            onKeyUp="javascript:Count(this,1000,this.form.ContextCounter);" 
                                            onChange="javascript:Count(this,1000,this.form.ContextCounter);">
                                        </asp:TextBox>
                                        <br />
                                        <div style="float:left; padding:.3em 0 0 0;">
                                        <asp:Label ID="Label10" runat="server" CssClass="GuidingQuestions">
                                            You have <input readonly="readonly" type="text" name="ContextCounter" 
                                            size="4" maxlength="4" value="<%= (1000 - ContextTxbx.Text.Length) %>"/> 
                                            characters remaining.
                                        </asp:Label>
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:Label ID="Label7" runat="server" Text="Situation Obtaining Before Intervention (Factual Information about the Problem)"></asp:Label>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:TextBox ID="ProblemTxbx" runat="server" TextMode="MultiLine" 
                                            Width="900px" Height="160px" CssClass="MText"
                                            onKeyUp="javascript:Count(this,1000,this.form.ProblemCounter);" 
                                            onChange="javascript:Count(this,1000,this.form.ProblemCounter);">
                                        </asp:TextBox>
                                        <br />
                                        <div style="float:left; padding:.3em 0 0 0;">
                                        <asp:Label ID="Label11" runat="server" CssClass="GuidingQuestions">
                                            You have <input readonly="readonly" type="text" name="ProblemCounter" 
                                            size="4" maxlength="4" value="<%= (1000 - ProblemTxbx.Text.Length) %>"/> 
                                            characters remaining.
                                        </asp:Label>
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:Label ID="Label8" runat="server" Text="Intervention Undertaken by IP and Community"></asp:Label>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:TextBox ID="InterventionTxbx" runat="server" TextMode="MultiLine" 
                                            Width="900px" Height="160px" CssClass="MText"
                                            onKeyUp="javascript:Count(this,1000,this.form.InterventionCounter);" 
                                            onChange="javascript:Count(this,1000,this.form.InterventionCounter);">
                                        </asp:TextBox>
                                        <br />
                                        <div style="float:left; padding:.3em 0 0 0;">
                                        <asp:Label ID="Label12" runat="server" CssClass="GuidingQuestions">
                                            You have <input readonly="readonly" type="text" name="InterventionCounter" 
                                            size="4" maxlength="4" value="<%= (1000 - InterventionTxbx.Text.Length) %>"/> 
                                            characters remaining.
                                        </asp:Label>
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell HorizontalAlign="Center">
                                        <asp:Label ID="Label9" runat="server" Text="Changes Witnessed/Results"></asp:Label>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow HorizontalAlign="Center">
                                    <asp:TableCell>
                                        <asp:TextBox ID="ResultsTxbx" runat="server" TextMode="MultiLine" 
                                            Width="900px" Height="160px" CssClass="MText"
                                            onKeyUp="javascript:Count(this,1000,this.form.ResultsCounter);" 
                                            onChange="javascript:Count(this,1000,this.form.ResultsCounter);">
                                        </asp:TextBox>
                                        <br />
                                        <div style="float:left; padding:.3em 0 0 0;">
                                        <asp:Label ID="Label13" runat="server" CssClass="GuidingQuestions">
                                            You have <input readonly="readonly" type="text" name="ResultsCounter" 
                                            size="4" maxlength="4" value="<%= (1000 - ResultsTxbx.Text.Length) %>"/> 
                                            characters remaining.
                                        </asp:Label>
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <div style="float:right; padding:.3em 0 0 0;">
                                            <asp:Button ID="successStoryBtn" runat="server" Text="Save" OnClick="successStoryBtn_Click" />
                                        </div>
                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
              </Content>
          </asp:AccordionPane>
<%--======================================================================================================== --%>
        <asp:AccordionPane ID="UpcomingQuarterPane" runat="server">
            <Header>Upcoming Activities Next Quarter</Header>
            <Content>
                <div style="text-align:left; padding:0 6em 0 6em;">
                    <asp:Label ID="Label68" runat="server" Text="Instructions" Font-Italic="true" 
                        CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                <br /><br />
                    <asp:Label ID="Label69" runat="server" CssClass="GuidingQuestions">
                    Use the guiding questions to assist in structuring upcoming activities for next quarter:
                    <br /><br />
                        1. Provide the Venue, Activity and Scheduled date for the activity next quarter
                    <%--1. What events, activities, outputs, highlights, and / or milestones may 
                    be reached next quarter?
                    <br />
                    2. Briefly summarize any proposed changes to the work plan and / or approach
                    <br />
                    3. Identify any potential risks to implementation in the next quarter--%>
                    </asp:Label>
                </div>
                <br />
                <asp:UpdatePanel ID="UpcomingActivitiesUpdatePanel" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div style="text-align:left; padding:0 6em 0 6em;">
                            <asp:Table ID="Table7" runat="server" CssClass="style1">
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="Label21" runat="server" Text="Venue"></asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell CssClass="rowstyle1">
                                        <asp:TextBox ID="VenueTxBx" runat="server" CssClass="MText" Width="180px"></asp:TextBox>
                                        &nbsp;
                                        <asp:RequiredFieldValidator ID="V1" runat="server" ErrorMessage="**" ForeColor="Red"
                                            ControlToValidate="VenueTxBx" ValidationGroup="act"></asp:RequiredFieldValidator>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="Label22" runat="server" Text="Activity"></asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell CssClass="rowstyle1">
                                        <asp:TextBox ID="ActivityTxBx" runat="server" Rows="3" 
                                            CssClass="MText" TextMode="MultiLine" Width="180px"></asp:TextBox>
                                        &nbsp;
                                        <asp:RequiredFieldValidator ID="V2" runat="server" ErrorMessage="**" ForeColor="Red"
                                            ControlToValidate="ActivityTxBx" ValidationGroup="act"></asp:RequiredFieldValidator>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="Label24" runat="server" Text="Date"></asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell CssClass="rowstyle1">
                                        <asp:TextBox ID="DateTxBx" runat="server" Width="180px" 
                                            placeholder="dd/MM/yyyy"></asp:TextBox>
                                        <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                                            TargetControlID="DateTxBx" Format="dd/MM/yyyy" PopupPosition="BottomRight"></asp:CalendarExtender>
                                        &nbsp;
                                        <asp:RequiredFieldValidator ID="V4" runat="server" ErrorMessage="**" ForeColor="Red"
                                            ControlToValidate="DateTxBx" ValidationGroup="act"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                             ControlToValidate="DateTxBx" ForeColor="Red" SetFocusOnError="true"
                                             ValidationExpression="(((0|1)[0-9]|2[0-9]|3[0-1])\/(0[1-9]|1[0-2])\/((19|20)\d\d))$" 
                                             ErrorMessage="Invalid date format." ValidationGroup="act" />
                                        <%--<asp:CompareValidator ID="CV1" runat="server" ErrorMessage="Provide a Proper Date"
                                            ForeColor="Red" ControlToValidate="DateTxBx" Operator="DataTypeCheck" Type="Date"
                                            ValidationGroup="act"></asp:CompareValidator>--%>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell></asp:TableCell>
                                    <asp:TableCell CssClass="rowstyle1">
                                        <asp:Button ID="UpcomingActivitiesBtn" runat="server" Text="Save" 
                                            OnClick="UpcomingActivitiesBtn_Click"  ValidationGroup="act" />
                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </div>
                        <br /><br />

                        <asp:GridView ID="UpcomingActivitiesGridView" runat="server" AutoGenerateColumns="False" ShowFooter="True"
                        CssClass="NewGrid" DataSourceID="ActivitiesDataSource" DataKeyNames="upcoming_activity_id">
                        <AlternatingRowStyle CssClass="NewGridAlt" />
                        <Columns>
                            <asp:TemplateField HeaderText="Activity" SortExpression="activity">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("activity") %>'
                                        Width="500px" Height="80px" TextMode="MultiLine" CssClass="MText"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("activity") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Venue" SortExpression="venue">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("venue") %>'
                                        Width="150px" Height="80px" TextMode="MultiLine" CssClass="MText"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("venue") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Date" SortExpression="date">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBox3" Format="dd/MM/yyyy"></asp:CalendarExtender>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowEditButton="True" ButtonType="Button" HeaderText="EDIT" />
                            <asp:CommandField ShowDeleteButton="true" ButtonType="Button" HeaderText="DELETE" />
                        </Columns>
                        <FooterStyle CssClass="NewGridFooter" />
                    </asp:GridView>


<%--======Check======Check======Check======Check======Check======Check======Check======Check======Check======Check======Check======--%>
                        <%--<br /><br /><br /><br />
                        <asp:TextBox ID="UpcomingQuarterTextBox" runat="server" TextMode="MultiLine" 
                            Height="160px" Width="900px" CssClass="MText" 
                            onKeyUp="javascript:Count(this,1500,this.form.counter5);" 
                            onChange="javascript:Count(this,1500,this.form.counter5);"></asp:TextBox>
                        <br />
                        <div style="float:left; padding:.3em 0 0 6em;">
                        <asp:Label ID="Label27" runat="server" CssClass="GuidingQuestions">
                            You have <input readonly="readonly" type="text" name="counter5" 
                            size="4" maxlength="4" value="<%= (1500 - UpcomingQuarterTextBox.Text.Length) %>"/> 
                            characters remaining.
                        </asp:Label>
                        </div>
                        <div style="float:right; padding:.3em 6em 0 0;">
                            <asp:Button ID="QuarterButton" runat="server" Text="Save" 
                                OnClick="QuarterButton_Click" />
                        </div>--%>
<%--======Check======Check======Check======Check======Check======Check======Check======Check======Check======Check======Check======--%>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </Content>
        </asp:AccordionPane>
<%--======================================================================================================== --%>
          <asp:AccordionPane ID="MultiMediaPane" runat="server">
              <Header>Useful Photographs Taken</Header>
              <Content>
                  <div style="text-align:left; padding:0 6em 0 6em;">
                    <asp:Label ID="Label93" runat="server" Text="Instructions" Font-Italic="true" 
                        CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                    <br /><br /> 
                    <asp:Label ID="Label94" runat="server" CssClass="GuidingQuestions">
                    Upload upto a maximum of three photographs taken with a caption of the activity taking place.
                    </asp:Label>
                </div>
                <br />
                <div style="text-align:left; padding:0 6em 0 6em;">
                    <asp:Table ID="Table8" runat="server" CssClass="style1">
                        <asp:TableRow>
                            <asp:TableCell>
                                <asp:Label ID="Label26" runat="server" Text="Select Photograph"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <asp:FileUpload ID="PhotoUpload" runat="server" AllowMultiple="false" />
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <asp:Label ID="Label29" runat="server" Text="Add a Caption to Photograph"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <asp:TextBox ID="CaptionTxBx" runat="server"
                                    TextMode="MultiLine" Width="350px" Height="100px" CssClass="MText"></asp:TextBox>
                                &nbsp;
                                <asp:RequiredFieldValidator ID="V5" runat="server" ErrorMessage="Add a Caption"
                                    ForeColor="Red" ControlToValidate="CaptionTxBx" ValidationGroup="ph"></asp:RequiredFieldValidator>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell></asp:TableCell>
                            <asp:TableCell CssClass="rowstyle1">
                                <asp:Button ID="SavePhotoBtn" runat="server" Text="Save" OnClick="SavePhotoBtn_Click" ValidationGroup="ph" />
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                </div>
                    
                <asp:UpdatePanel ID="PhotoUpdatePanel" runat="server" UpdateMode="Always">
                    <ContentTemplate>

                        <asp:GridView ID="PhotoGridView" runat="server" AutoGenerateColumns="False" DataKeyNames="photo_id" 
                            DataSourceID="PhotoDataSource" ShowFooter="True" CssClass="NewGrid" OnRowDeleting="PhotoGridView_RowDeleting"
                            OnRowDeleted="PhotoGridView_RowDeleted">
                            <AlternatingRowStyle CssClass="NewGridAlt" />
                        <Columns>
                            <asp:TemplateField HeaderText="photo_id" SortExpression="photo_id" Visible="False">
                                <ItemTemplate>
                                    <asp:Label ID="ID_Label" runat="server" Text='<%# Bind("photo_id") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="caption" HeaderText="Caption" SortExpression="caption" />
                            <asp:TemplateField HeaderText="Photograph" SortExpression="name">
                                <ItemTemplate>
                                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("name", "~/Amkeni_System/ip_photos/{0}") %>' />
                                </ItemTemplate>
                                <ControlStyle Height="100px" Width="100px" />
                            </asp:TemplateField>
                            <asp:CommandField ButtonType="Button" ShowDeleteButton="true" HeaderText="Delete" />
                        </Columns>
                            <FooterStyle CssClass="NewGridFooter" />
                    </asp:GridView>
                        
                      </ContentTemplate>
                  </asp:UpdatePanel>
              </Content>
          </asp:AccordionPane>
<%--======================================================================================================== --%>
          <asp:AccordionPane ID="FinancialSummaryPane" runat="server">
              <Header>Cumulative Financial Summary</Header>
              <Content>
                  <div style="text-align:left; width:50%; margin:0 auto;">
                    <asp:Label ID="Label87" runat="server" Text="Instructions" Font-Italic="true" 
                        CssClass="GuidingQuestions" ForeColor="#0055cc"></asp:Label>
                    <br /><br /> 
                    <asp:Label ID="Label88" runat="server" CssClass="GuidingQuestions">
                    Refer to the latest delivery overview for the financial information required.
                    </asp:Label>
                </div>
                <br />
                  <asp:UpdatePanel ID="FinancialUpdatePanel" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <div style="text-align:left;">
                        <div style="width:50%; margin:0 auto;">
                            <asp:Table ID="CFSTable" runat="server" Width="400px">
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="Label32" runat="server" Text="Approved Budget"></asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell>
                                        <asp:TextBox ID="ApprovedBudgetTextBox" runat="server" CssClass="MText"></asp:TextBox>
                                        &nbsp;&nbsp;&nbsp;
                                        <%--<asp:RequiredFieldValidator ID="RV1" runat="server" ErrorMessage="Required" ForeColor="Red" 
                                            ControlToValidate="ApprovedBudgetTextBox" ValidationGroup="cfs"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="REV1" runat="server" ErrorMessage="Enter Correct Value"
                                            ForeColor="Red" ControlToValidate="ApprovedBudgetTextBox" ValidationGroup="cfs"
                                            ValidationExpression="((\d+)((\.\d{1,2})?))$"></asp:RegularExpressionValidator>--%>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="Label33" runat="server">
                                            Total (Disbursements + Commitments)
                                        </asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell>
                                        <asp:TextBox ID="TotalTextBox" runat="server" CssClass="MText"></asp:TextBox>
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:RequiredFieldValidator ID="RV2" runat="server" ErrorMessage="Required" ForeColor="Red"
                                            ControlToValidate="TotalTextBox" ValidationGroup="cfs"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="REV2" runat="server" ErrorMessage="Enter Correct Value"
                                            ForeColor="Red" ControlToValidate="TotalTextBox" ValidationGroup="cfs"
                                            ValidationExpression="((\d+)((\.\d{1,2})?))$"></asp:RegularExpressionValidator>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="Label52" runat="server" Text="Balance of Funds"></asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell>
                                        <asp:Label ID="BalanceLabel" runat="server"></asp:Label>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell>
                                        <asp:Label ID="Label53" runat="server">
                                            % Delivery (Against Approved Budget)
                                        </asp:Label>
                                    </asp:TableCell>
                                    <asp:TableCell>
                                        <asp:Label ID="DeliveryLabel" runat="server"></asp:Label>
                                    </asp:TableCell>
                                </asp:TableRow>
                                <asp:TableRow>
                                    <asp:TableCell></asp:TableCell>
                                    <asp:TableCell>
                                        <asp:Button ID="CFSButton" runat="server" ValidationGroup="cfs" Text="Save" OnClick="CFSButton_Click" />
                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </div>
                    </div>
                    <div style="text-align:right;">
                        <asp:PieChart ID="FinancialSummaryPieChart" runat="server" ChartHeight="300"
                            ChartWidth="450" ChartTitle="Cummulative Financial Summary"
                            ChartTitleColor="#0E426C">
                        </asp:PieChart>
                        <%--<asp:PieChart ID="FinancialSummaryPieChart" runat="server" ChartHeight="300"
                            ChartWidth="450" ChartTitle="Cummulative Financial Summary"
                            ChartTitleColor="#0E426C">
                            <PieChartValues>
                                <ajaxToolkit:PieChartValue Category="Total Expenditure" Data="45"
                                    PieChartValueColor="#6C1E83" PieChartValueStrokeColor="black" />
                                <ajaxToolkit:PieChartValue Category="Balance of Funds" Data="55"
                                    PieChartValueColor="#D08AD9" PieChartValueStrokeColor="black" />
                            </PieChartValues>
                        </asp:PieChart>--%>
                    </div>
                </ContentTemplate>
                </asp:UpdatePanel>
              </Content>
          </asp:AccordionPane>
<%--======================================================================================================== --%>
      </Panes>
    </asp:Accordion>
    <br />


    <asp:Table ID="Table5" runat="server" CssClass="style1">
        <asp:TableRow>
            <asp:TableCell style="text-align:left;">
                <asp:Label ID="Label17" runat="server" Text="Comment:"></asp:Label>
                <br />
                <%--<asp:Button ID="ProjectCommentButton" runat="server" Text="Save" 
                        OnClick="ProjectCommentButton_Click" />--%>

                    <asp:TextBox ID="ProjectCommentTextBox" runat="server" TextMode="MultiLine" 
                        Height="50px" Width="200px" CssClass="MText"></asp:TextBox>
            </asp:TableCell>
            <asp:TableCell CssClass="rowstyle1">
                
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
        <br />
        <div style="float:left;">
        <p>
            <asp:Button ID="ReturnButton" runat="server" Text="Return to Implementing Partner" 
                OnClick="ReturnButton_Click" />
        </p>
        </div>
        <div style="float:right;">
        <p>
            <asp:Button ID="ApproveButton" runat="server" Text="Approve Report" 
                OnClientClick="return confirm('Please Confirm you have saved all your data before Approving this report')" 
                OnClick="ApproveButton_Click" />
            <asp:Label ID="WarningLabel" runat="server" Visible="false" ForeColor="Red"></asp:Label>
        </p>
        </div>

        <asp:UpdatePanel ID="InProgressUpdatePanel" runat="server" UpdateMode="Always">
            <ContentTemplate>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender3" runat="server" 
            BehaviorID="animation" TargetControlID="InProgressUpdatePanel">
            <Animations>
                <OnUpdating>
                    <Parallel duration="0">
                        <%-- place the update progress div over the gridview control --%>
                        <ScriptAction Script="onUpdating();" />
                    </Parallel>
                </OnUpdating>
                <OnUpdated>
                    <Parallel duration="0">
                        <%--find the update progress div and place it over the gridview control--%>
                        <ScriptAction Script="onUpdated();" />
                    </Parallel>
                </OnUpdated>
            </Animations>
        </asp:UpdatePanelAnimationExtender>
        <div id="updateProgressDiv" style="background-color:#CF4342; display:none; position:fixed;
            z-index:100; top:50%; left:50%;">
            <span style="color:#fff; margin:3px">Please Wait ...</span>
        </div>

</asp:Content>
